#include<iostream>
#include<vector>
#include<string>
using namespace std;
int main()
{

  cout<<"测试"<<endl;
  vector<int>v1;
  v1.push_back(1);
  v1.push_back(2);
  v1.push_back(3);
  v1.push_back(4);
  v1.push_back(5);

  for(auto e:v1)
  {

    cout<<++e<<" ";
  }
   cout<<endl;

   auto it = v1.begin()+4;
  v1.erase(it);

//*(v1.begin() + 4)+=10;    // //erase以后，迭代器失效了不能访问了
						   // // 部分编译器会强制检查，访问会报错
  cout << *it << endl;
  ++it;
  cout << *it << endl;


  for (auto e : v1)
 {
	 cout << e << " ";
 }
  cout << endl;

  string s1("1111111111");
  string s2;                 
  cout << sizeof(s1) << endl;  
  cout << sizeof(s2) << endl;  
  return 0;
}


